//
//  GMAuthView.m
//  GuardMan
//
//  Created by steven on 2016/12/25.
//  Copyright © 2016年 steven. All rights reserved.
//

#import "GMAuthView.h"

@implementation GMAuthView

- (id)init {
    self = [super init];
    if (self) {
        // logo image view
        [self addSubview:self.logoImageView];
    }
    
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    [self.logoImageView autoPinEdgeToSuperviewEdge:ALEdgeTop withInset:56];
    [self.logoImageView autoAlignAxisToSuperviewAxis:ALAxisVertical];
}

#pragma mark - Getter for logo image view
- (UIImageView *)logoImageView {
    if (!_logoImageView) {
        _logoImageView = [[UIImageView alloc] init];
        _logoImageView.image = [UIImage imageNamed:@"logo"];
    }
    
    return _logoImageView;
}

@end
